package com.plan.dao.mapper.user;

import com.plan.controller.user.response.UserVO;
import com.plan.entity.user.User;
import org.apache.ibatis.annotations.Param;

/**
 * 用户Mapper
 *
 * @author zcl
 */
public interface UserMapper {

    int insert(User user);

    void update(User user);

    User selectOneById(@Param("id") Long id);

    User selectOneByOpenIdWx(@Param("openId") String openId);

    User selectOneByOpenIdAlipay(@Param("openId") String openId);

    User selectOneByOpenIdPhone(@Param("phone") String phone);

}
